﻿using Twilio;

namespace SVU.Managers
{
    public class TwillioManager
    {
        public static void SendText()
        {
            var twilio = new TwilioRestClient("ACe2bb6b57f5335dd37b31b2a90c2cb120",
                                                  "122001cab0e5d4693a8ba0eff1774f5e");
            SMSMessage msg = twilio.SendSmsMessage("+14155992671", "+15129219530", "SVU security - alarm triggered.");

            if (msg == null)
            {
                FeedbackManager.AddFeedback("Sent SMS notification, status: (unkown)");
            }
            else
            {
                FeedbackManager.AddFeedback("Sent SMS notification, status:" + msg.Status);
            }
        }
    }
}
